package br.ita.doacoes.view.cadastrodoacoes;
import javax.swing.JFrame;

import java.awt.BorderLayout;
import java.util.List;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

//import main.ApplicationException;
//import junit.framework.TestCase;
import br.ita.doacoes.core.cadastrodoacoes.dao.*;
import br.ita.doacoes.core.cadastrodoacoes.dao.impl.*;
import br.ita.doacoes.core.templates.GenericDAOJPA;
import br.ita.doacoes.domain.cadastrodoacoes.*;
//import br.ita.doacoes.view.templates.CadastroMestreDetalhe;
//import br.ita.doacoes.domain.Pessoa;
//import br.ita.doacoes.domain.PessoaFisica;
//import br.ita.doacoes.domain.PessoaJuridica;
//import br.ita.doacoes.domain.TipoItem;

//import main.DAOFactory;

import org.swingBean.actions.ApplicationAction;
import org.swingBean.descriptor.BeanTableModel;
import org.swingBean.descriptor.GenericFieldDescriptor;
import org.swingBean.descriptor.TableFieldDescriptor;
import org.swingBean.descriptor.XMLDescriptorFactory;
import org.swingBean.gui.JActButton;
import org.swingBean.gui.JBeanPanel;
import org.swingBean.gui.JBeanTable;





public class CadastroDoacao extends CadastroMestreDetalhe {

	
		public CadastroDoacao() {
			//CadastroMestreDetalhe cadastroDoacoes = new CadastroMestreDetalhe();
			this.setClasse(Pacote.class);
			this.setXmlForm("cadastroDoacaoForm.xml");
			this.setXmlTable("cadastroDoacaoTable.xml");
			this.setFormName("CadastroDoacaoForm");
			this.setTableName("CadastroDoacaoTable");
			this.setDao(new GenericDAOJPA(Pacote.class));
			
			this.setXmlTableDetalhe("itemTable.xml");
			this.setTableDetalheName("ItemTable");
			this.setClasseDetalhe(Item.class);
			this.setDetalheProperty("itemsList");
			this.setLarguraTabela(120);
			this.setAlturaTabelaDetalhe(70);
	
		
			
			this.init();
			/*
			JFrame frame = new JFrame("::..Cadastro de Doacao..::");
			frame.setSize(600, 500);
			frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			frame.getContentPane().add(this);

			frame.setVisible(true);*/


	}

}
